﻿@model FNHMVC.Web.ViewModels.CategoryFormModel
@{
    ViewBag.Title = "Edit";
}  
<h2>Edit</h2>         
@using (Html.BeginForm("Save", "Category"))
{
      @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Category</legend>     

        @Html.HiddenFor(model => model.CategoryId)
        @Html.Partial("_CreateOrEdit", Model)

        <p>
            <input type="submit" value="Save" class="btn btn-default" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
